package com.example.entity;

import java.io.Serializable;
import java.util.Date;

import com.example.enums.ArticleStatusEnum;
import com.example.common.base.InUserInfo;
import com.example.common.base.LastEditUserInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.ibatis.type.Alias;

/**
 * Created by James.H.Fu on 2016/12/15.
 */
@Alias("ArticleEntity")
public class ArticleEntity implements Serializable, InUserInfo, LastEditUserInfo {
    /**
     *
     */
    private static final long serialVersionUID = 3691856065009866274L;

    private Integer articleID;

    private Integer categoryID;

    private String title;

    private String content;

    private Integer viewCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishDate;

    private ArticleStatusEnum status;

    private Integer inUserSysNo;

    private String inUserName;

    private Date inDate;

    private Integer lastEditUserSysNo;

    private String lastEditUserName;

    private Date lastEditDate;

    public Integer getArticleID() {
        return articleID;
    }

    public void setArticleID(Integer articleID) {
        this.articleID = articleID;
    }

    public Integer getCategoryID() {
        return categoryID;
    }

    public void setCategoryID(Integer categoryID) {
        this.categoryID = categoryID;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public ArticleStatusEnum getStatus() {
        return status;
    }

    public void setStatus(ArticleStatusEnum status) {
        this.status = status;
    }

    @Override
    public Integer getInUserSysNo() {
        return inUserSysNo;
    }

    @Override
    public void setInUserSysNo(Integer inUserSysNo) {
        this.inUserSysNo = inUserSysNo;
    }

    @Override
    public String getInUserName() {
        return inUserName;
    }

    @Override
    public void setInUserName(String inUserName) {
        this.inUserName = inUserName;
    }

    @Override
    public Date getInDate() {
        return inDate;
    }

    @Override
    public void setInDate(Date inDate) {
        this.inDate = inDate;
    }

    @Override
    public Integer getLastEditUserSysNo() {
        return lastEditUserSysNo;
    }

    @Override
    public void setLastEditUserSysNo(Integer lastEditUserSysNo) {
        this.lastEditUserSysNo = lastEditUserSysNo;
    }

    @Override
    public String getLastEditUserName() {
        return lastEditUserName;
    }

    @Override
    public void setLastEditUserName(String lastEditUserName) {
        this.lastEditUserName = lastEditUserName;
    }

    @Override
    public Date getLastEditDate() {
        return lastEditDate;
    }

    @Override
    public void setLastEditDate(Date lastEditDate) {
        this.lastEditDate = lastEditDate;
    }


}
